/*
 * Copyright Thoughtworks, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@use "sass:color";
@import "../../global/common";
@import "../../../views/components/forms/forms";

.advanced-settings {
  display: block;
  width: 100%;
  margin: 5px 0 0;
  padding: 15px 0 5px;
  border-top: 1px solid $line-color;

  .summary {
    line-height: 25px;
    cursor: pointer;
    outline: none;
    font-weight: 600;

    @include icon-before(
      $type: $fa-var-chevron-right,
      $color: $text-color,
      $size: 16px,
      $line-height: 25px,
      $margin: 0 5px
    );
  }

  .details {
    margin: 0;
    padding: 0;
    display: none;
  }

  &.open,
  &.lock-open {
    .summary {
      margin-bottom: 15px;

      &::before {
        transform: rotate(90deg);
      }
    }

    .details {
      display: block;
    }
  }

  &.lock-open .summary {
    cursor: not-allowed;

    &::before {
      color: color.adjust($text-color, $lightness: 50%);
    }
  }
}

.selection-container {
  display: flex;
  align-items: center;

  .message {
    margin-left: 10px;
    margin-top: 10px;
  }
}

.config-values {
  margin-left: 10px;
}
